package edu.university.demo.system.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.university.demo.system.entit.SongInfo;
import edu.university.demo.system.repository.SongInfoDao;

@Transactional
@Service
public class SongInfoService {
	
	@Autowired
	private SongInfoDao songInfoDao;
	
	public void save(SongInfo songInfo) {
		
		songInfoDao.save(songInfo);
	}

	public void resetDayAmout() {
		
		songInfoDao.resetDayAmout();
	}

	public void resetWeekAmout() {
		
		songInfoDao.resetWeekAmout();
	}

	public void resetMonthAmout() {
		
		songInfoDao.resetMonthAmout();
	}

}
